package com.njtoyo.taxi.admin.mapper.secondary.mapper.data;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.secondary.entity.data.DriverKpi;
import com.njtoyo.taxi.admin.rest.presenter.data.data_analysis.DriverDataPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.data.data_analysis.DriverDataWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@DS(Const.SECONDARY_DS)
public interface DriverKpiMapper extends BaseMapper<DriverKpi> {
    Page<DriverDataPresenter> getDriverDateList(DriverDataWrapper wrapper);

    List<DriverDataPresenter> getDriverKpiList(@Param("driverIds") List<Long> driverIds, @Param("startDate")String startDate, @Param("endDate")String endDate);

}
